
package com.qdu.servlet;

import com.qdu.service.ActivCommentService;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author 19645
 */
@WebServlet("/agree")
public class AddAgreeServlet extends HttpServlet{
    ActivCommentService activCommentService=new ActivCommentService();

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String acId=req.getParameter("acommentId");
        String activity=req.getParameter("activityId");
        
        activCommentService.addAgree(acId);
        
        resp.sendRedirect("gmis?activityId="+activity);
    }
    
}
